﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

using log4net;
using CommonLib;
using ConfigUtilLib;




namespace QueueMgrUtil
{
    public enum QUEUE_WORK_ITEM_TYPE  {PROCESS_WORK_ITEM=0, PROCESS_END};
    

    public class QueueWorkItem
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        private const string interfaceStr = "CommonLib.ProcessInterface"; 
        public QUEUE_WORK_ITEM_TYPE cmdType { get;private set;} 
        public Object ConfigRecord { get; private set; }
        public Object ResultRecord { get; private set; }
        public Guid   uniqueID { get; private set; }

        public QueueWorkItem(QUEUE_WORK_ITEM_TYPE workType, object ConfigRec, Object resultRec)
        {
            cmdType = workType;
            ConfigRecord = ConfigRec;
            ResultRecord = resultRec;
            uniqueID = Guid.NewGuid(); 
        }
     
    }
}
